package com.hnichr.ump.common.schedule.entity;

import com.hnichr.ump.common.entity.UmpEntity;
import com.mxpioframework.jpa.annotation.Generator;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "t_schedule_desk")
@Schema(description = "定时任务控制台")
public class ScheduleDesk extends UmpEntity {

    @Id
    @Generator
    @Column(name = "ID_", updatable = false)
    @Schema(description = "ID")
    private String id;

    @Column(name = "SCHEDULE_NAME_")
    @Schema(description = "调度名称")
    private String scheduleName;

    @Column(name = "SCHEDULE_DESC_")
    @Schema(description = "调度说明")
    private String scheduleDesc;

    @Column(name = "SCHEDULE_TIME_")
    @Schema(description = "调度时间")
    private Date scheduleTime;

    @Column(name = "OPEN_STATUS_")
    @Schema(description = "开启状态, 0-未开启  1-已开启")
    private String openStatus;

    @Column(name = "RUNNING_STATUS_")
    @Schema(description = "执行状态, 0-未执行  1-执行中")
    private String runningStatus;

}
